<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver CH9121: ch9121 base driver function</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver CH9121
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">CH9121 full function driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__ch9121__base__driver.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ch9121 base driver function<div class="ingroups"><a class="el" href="group__ch9121__driver.html">ch9121 driver function</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>ch9121 base driver modules  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structch9121__handle__s.html">ch9121_handle_s</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">ch9121 handle structure definition  <a href="structch9121__handle__s.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structch9121__info__s.html">ch9121_info_s</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">ch9121 information structure definition  <a href="structch9121__info__s.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gaf0819c9c7faa65567adecbfe6b5c1bc5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gaf0819c9c7faa65567adecbfe6b5c1bc5">CH9121_UART_PRE_DELAY</a>&#160;&#160;&#160;10</td></tr>
<tr class="memdesc:gaf0819c9c7faa65567adecbfe6b5c1bc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">ch9121 uart pre delay definition  <a href="group__ch9121__base__driver.html#gaf0819c9c7faa65567adecbfe6b5c1bc5">More...</a><br /></td></tr>
<tr class="separator:gaf0819c9c7faa65567adecbfe6b5c1bc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga6dc45bcf5de725fd18b9fc3c4500a54d"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structch9121__handle__s.html">ch9121_handle_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a></td></tr>
<tr class="memdesc:ga6dc45bcf5de725fd18b9fc3c4500a54d"><td class="mdescLeft">&#160;</td><td class="mdescRight">ch9121 handle structure definition  <a href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">More...</a><br /></td></tr>
<tr class="separator:ga6dc45bcf5de725fd18b9fc3c4500a54d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga64b13a4c2b573c1bd9e28471e7c4507f"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structch9121__info__s.html">ch9121_info_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga64b13a4c2b573c1bd9e28471e7c4507f">ch9121_info_t</a></td></tr>
<tr class="memdesc:ga64b13a4c2b573c1bd9e28471e7c4507f"><td class="mdescLeft">&#160;</td><td class="mdescRight">ch9121 information structure definition  <a href="group__ch9121__base__driver.html#ga64b13a4c2b573c1bd9e28471e7c4507f">More...</a><br /></td></tr>
<tr class="separator:ga64b13a4c2b573c1bd9e28471e7c4507f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gaa237c01198f7eefe10d865ae5acef0f8"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> { <a class="el" href="group__ch9121__base__driver.html#ggaa237c01198f7eefe10d865ae5acef0f8aff6d2cff524167d0f2643bbcf984ea4f">CH9121_PORT1</a> = 0x00
, <a class="el" href="group__ch9121__base__driver.html#ggaa237c01198f7eefe10d865ae5acef0f8a2d106209a49642e1fc14c3d0d50dfd0b">CH9121_PORT2</a> = 0x01
 }</td></tr>
<tr class="memdesc:gaa237c01198f7eefe10d865ae5acef0f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">ch9121 port enumeration definition  <a href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">More...</a><br /></td></tr>
<tr class="separator:gaa237c01198f7eefe10d865ae5acef0f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga072a08d5a76de43c772438883775ae8e"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga072a08d5a76de43c772438883775ae8e">ch9121_bool_t</a> { <a class="el" href="group__ch9121__base__driver.html#gga072a08d5a76de43c772438883775ae8ea1bfd3219c201035143f8d61b0d188a11">CH9121_BOOL_FALSE</a> = 0x00
, <a class="el" href="group__ch9121__base__driver.html#gga072a08d5a76de43c772438883775ae8ea776657b5ef1ad43c3a3f1e52a00abe22">CH9121_BOOL_TRUE</a> = 0x01
 }</td></tr>
<tr class="memdesc:ga072a08d5a76de43c772438883775ae8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">ch9121 bool enumeration definition  <a href="group__ch9121__base__driver.html#ga072a08d5a76de43c772438883775ae8e">More...</a><br /></td></tr>
<tr class="separator:ga072a08d5a76de43c772438883775ae8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga96cfac2dc742c18219de2263f7cd9ca5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga96cfac2dc742c18219de2263f7cd9ca5">ch9121_status_t</a> { <a class="el" href="group__ch9121__base__driver.html#gga96cfac2dc742c18219de2263f7cd9ca5af8d0734b6b03a6a7d13b653163d00271">CH9121_STATUS_DISCONNECT</a> = 0x00
, <a class="el" href="group__ch9121__base__driver.html#gga96cfac2dc742c18219de2263f7cd9ca5ad6c9da3731fc5e4c0512207ffab0c351">CH9121_STATUS_CONNECT</a> = 0x01
 }</td></tr>
<tr class="memdesc:ga96cfac2dc742c18219de2263f7cd9ca5"><td class="mdescLeft">&#160;</td><td class="mdescRight">ch9121 status enumeration definition  <a href="group__ch9121__base__driver.html#ga96cfac2dc742c18219de2263f7cd9ca5">More...</a><br /></td></tr>
<tr class="separator:ga96cfac2dc742c18219de2263f7cd9ca5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1885e76e565351e002b873668e4a9d16"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga1885e76e565351e002b873668e4a9d16">ch9121_mode_t</a> { <a class="el" href="group__ch9121__base__driver.html#gga1885e76e565351e002b873668e4a9d16aadc6c8b1f132f07caf14d1349be24598">CH9121_MODE_TCP_SERVER</a> = 0x00
, <a class="el" href="group__ch9121__base__driver.html#gga1885e76e565351e002b873668e4a9d16ab66dffa5b1e5f60f96e91f3909bc9cf8">CH9121_MODE_TCP_CLIENT</a> = 0x01
, <a class="el" href="group__ch9121__base__driver.html#gga1885e76e565351e002b873668e4a9d16a4775481c1370e70fa78ef7846424f8e0">CH9121_MODE_UDP_SERVER</a> = 0x02
, <a class="el" href="group__ch9121__base__driver.html#gga1885e76e565351e002b873668e4a9d16ac076c7cf5ed640ca07f9698fbfd17eda">CH9121_MODE_UDP_CLIENT</a> = 0x03
 }</td></tr>
<tr class="memdesc:ga1885e76e565351e002b873668e4a9d16"><td class="mdescLeft">&#160;</td><td class="mdescRight">ch9121 mode enumeration definition  <a href="group__ch9121__base__driver.html#ga1885e76e565351e002b873668e4a9d16">More...</a><br /></td></tr>
<tr class="separator:ga1885e76e565351e002b873668e4a9d16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga07220e3de8bd64e49f66fa5b10a0e80e"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga07220e3de8bd64e49f66fa5b10a0e80e">ch9121_parity_t</a> { <br />
&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga07220e3de8bd64e49f66fa5b10a0e80ea681a6976b74755d5de27c6e3348a6771">CH9121_PARITY_EVEN</a> = 0x00
, <a class="el" href="group__ch9121__base__driver.html#gga07220e3de8bd64e49f66fa5b10a0e80ea7f51ff40bf41962fef63d2885c50adab">CH9121_PARITY_ODD</a> = 0x01
, <a class="el" href="group__ch9121__base__driver.html#gga07220e3de8bd64e49f66fa5b10a0e80ea6edd8794ba8b703e9c6ff4d6252ba69f">CH9121_PARITY_MARK</a> = 0x02
, <a class="el" href="group__ch9121__base__driver.html#gga07220e3de8bd64e49f66fa5b10a0e80eae332f48bf918e608fe4ce6c4cfc7b18f">CH9121_PARITY_SPACE</a> = 0x03
, <br />
&#160;&#160;<a class="el" href="group__ch9121__base__driver.html#gga07220e3de8bd64e49f66fa5b10a0e80eae92b585a2a716954404ccca52a44b116">CH9121_PARITY_NONE</a> = 0x04
<br />
 }</td></tr>
<tr class="memdesc:ga07220e3de8bd64e49f66fa5b10a0e80e"><td class="mdescLeft">&#160;</td><td class="mdescRight">ch9121 parity enumeration definition  <a href="group__ch9121__base__driver.html#ga07220e3de8bd64e49f66fa5b10a0e80e">More...</a><br /></td></tr>
<tr class="separator:ga07220e3de8bd64e49f66fa5b10a0e80e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga2bc209bc96bc112c30b21f9728812e2c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga2bc209bc96bc112c30b21f9728812e2c">ch9121_info</a> (<a class="el" href="group__ch9121__base__driver.html#ga64b13a4c2b573c1bd9e28471e7c4507f">ch9121_info_t</a> *info)</td></tr>
<tr class="memdesc:ga2bc209bc96bc112c30b21f9728812e2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">get chip's information  <a href="group__ch9121__base__driver.html#ga2bc209bc96bc112c30b21f9728812e2c">More...</a><br /></td></tr>
<tr class="separator:ga2bc209bc96bc112c30b21f9728812e2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga10ec3831683691a58c4f8b51572e0576"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga10ec3831683691a58c4f8b51572e0576">ch9121_init</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga10ec3831683691a58c4f8b51572e0576"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize the chip  <a href="group__ch9121__base__driver.html#ga10ec3831683691a58c4f8b51572e0576">More...</a><br /></td></tr>
<tr class="separator:ga10ec3831683691a58c4f8b51572e0576"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga50583196c51bf2199c588bc60d9cc1f6"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga50583196c51bf2199c588bc60d9cc1f6">ch9121_deinit</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga50583196c51bf2199c588bc60d9cc1f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">close the chip  <a href="group__ch9121__base__driver.html#ga50583196c51bf2199c588bc60d9cc1f6">More...</a><br /></td></tr>
<tr class="separator:ga50583196c51bf2199c588bc60d9cc1f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga52e9895a3f0777c15bd3f6ecd42d50d8"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga52e9895a3f0777c15bd3f6ecd42d50d8">ch9121_read</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, uint8_t *buf, uint16_t *len)</td></tr>
<tr class="memdesc:ga52e9895a3f0777c15bd3f6ecd42d50d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">read data  <a href="group__ch9121__base__driver.html#ga52e9895a3f0777c15bd3f6ecd42d50d8">More...</a><br /></td></tr>
<tr class="separator:ga52e9895a3f0777c15bd3f6ecd42d50d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf5607dae69f7c7df32f11ae4c3b4a376"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gaf5607dae69f7c7df32f11ae4c3b4a376">ch9121_write</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, uint8_t *buf, uint16_t len)</td></tr>
<tr class="memdesc:gaf5607dae69f7c7df32f11ae4c3b4a376"><td class="mdescLeft">&#160;</td><td class="mdescRight">write data  <a href="group__ch9121__base__driver.html#gaf5607dae69f7c7df32f11ae4c3b4a376">More...</a><br /></td></tr>
<tr class="separator:gaf5607dae69f7c7df32f11ae4c3b4a376"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad79a97224fb88e872af00e62a34883b2"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gad79a97224fb88e872af00e62a34883b2">ch9121_get_version</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, uint8_t *version)</td></tr>
<tr class="memdesc:gad79a97224fb88e872af00e62a34883b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">get version  <a href="group__ch9121__base__driver.html#gad79a97224fb88e872af00e62a34883b2">More...</a><br /></td></tr>
<tr class="separator:gad79a97224fb88e872af00e62a34883b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga590150199f4c795ca1b2aa553f1f8933"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga590150199f4c795ca1b2aa553f1f8933">ch9121_reset</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga590150199f4c795ca1b2aa553f1f8933"><td class="mdescLeft">&#160;</td><td class="mdescRight">reset the chip  <a href="group__ch9121__base__driver.html#ga590150199f4c795ca1b2aa553f1f8933">More...</a><br /></td></tr>
<tr class="separator:ga590150199f4c795ca1b2aa553f1f8933"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga77e5d4780e16f8f820c4eaba204fd7be"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga77e5d4780e16f8f820c4eaba204fd7be">ch9121_save_to_eeprom</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga77e5d4780e16f8f820c4eaba204fd7be"><td class="mdescLeft">&#160;</td><td class="mdescRight">save to eeprom  <a href="group__ch9121__base__driver.html#ga77e5d4780e16f8f820c4eaba204fd7be">More...</a><br /></td></tr>
<tr class="separator:ga77e5d4780e16f8f820c4eaba204fd7be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga42c3f2032acd289900bb7aece12b08c7"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga42c3f2032acd289900bb7aece12b08c7">ch9121_config_and_reset</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga42c3f2032acd289900bb7aece12b08c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">config and reset the chip  <a href="group__ch9121__base__driver.html#ga42c3f2032acd289900bb7aece12b08c7">More...</a><br /></td></tr>
<tr class="separator:ga42c3f2032acd289900bb7aece12b08c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae09655171b845f0b82c0d5f5fb64b020"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gae09655171b845f0b82c0d5f5fb64b020">ch9121_exit</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle)</td></tr>
<tr class="memdesc:gae09655171b845f0b82c0d5f5fb64b020"><td class="mdescLeft">&#160;</td><td class="mdescRight">exit  <a href="group__ch9121__base__driver.html#gae09655171b845f0b82c0d5f5fb64b020">More...</a><br /></td></tr>
<tr class="separator:gae09655171b845f0b82c0d5f5fb64b020"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga20b05e4d19f80d40ae9287f367e75d82"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga20b05e4d19f80d40ae9287f367e75d82">ch9121_set_dhcp</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#ga072a08d5a76de43c772438883775ae8e">ch9121_bool_t</a> enable)</td></tr>
<tr class="memdesc:ga20b05e4d19f80d40ae9287f367e75d82"><td class="mdescLeft">&#160;</td><td class="mdescRight">enable or disable dhcp  <a href="group__ch9121__base__driver.html#ga20b05e4d19f80d40ae9287f367e75d82">More...</a><br /></td></tr>
<tr class="separator:ga20b05e4d19f80d40ae9287f367e75d82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaef57bbffd080f9ba360f2e1e54f15d36"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gaef57bbffd080f9ba360f2e1e54f15d36">ch9121_get_mac</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, uint8_t mac[6])</td></tr>
<tr class="memdesc:gaef57bbffd080f9ba360f2e1e54f15d36"><td class="mdescLeft">&#160;</td><td class="mdescRight">get chip mac  <a href="group__ch9121__base__driver.html#gaef57bbffd080f9ba360f2e1e54f15d36">More...</a><br /></td></tr>
<tr class="separator:gaef57bbffd080f9ba360f2e1e54f15d36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3c7f6c035eb9e7636fc69e54e668cdf4"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga3c7f6c035eb9e7636fc69e54e668cdf4">ch9121_set_ip</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, uint8_t ip[4])</td></tr>
<tr class="memdesc:ga3c7f6c035eb9e7636fc69e54e668cdf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">set ip address  <a href="group__ch9121__base__driver.html#ga3c7f6c035eb9e7636fc69e54e668cdf4">More...</a><br /></td></tr>
<tr class="separator:ga3c7f6c035eb9e7636fc69e54e668cdf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0b0ac5aadb82af97326b5ac5c8eaa92b"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga0b0ac5aadb82af97326b5ac5c8eaa92b">ch9121_get_ip</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, uint8_t ip[4])</td></tr>
<tr class="memdesc:ga0b0ac5aadb82af97326b5ac5c8eaa92b"><td class="mdescLeft">&#160;</td><td class="mdescRight">get ip address  <a href="group__ch9121__base__driver.html#ga0b0ac5aadb82af97326b5ac5c8eaa92b">More...</a><br /></td></tr>
<tr class="separator:ga0b0ac5aadb82af97326b5ac5c8eaa92b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa58f8a9bc5ea8ba90f7b4a176900c687"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gaa58f8a9bc5ea8ba90f7b4a176900c687">ch9121_set_subnet_mask</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, uint8_t mask[4])</td></tr>
<tr class="memdesc:gaa58f8a9bc5ea8ba90f7b4a176900c687"><td class="mdescLeft">&#160;</td><td class="mdescRight">set subnet mask  <a href="group__ch9121__base__driver.html#gaa58f8a9bc5ea8ba90f7b4a176900c687">More...</a><br /></td></tr>
<tr class="separator:gaa58f8a9bc5ea8ba90f7b4a176900c687"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7bd131a9843a9976172ae8006374014c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga7bd131a9843a9976172ae8006374014c">ch9121_get_subnet_mask</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, uint8_t mask[4])</td></tr>
<tr class="memdesc:ga7bd131a9843a9976172ae8006374014c"><td class="mdescLeft">&#160;</td><td class="mdescRight">get subnet mask  <a href="group__ch9121__base__driver.html#ga7bd131a9843a9976172ae8006374014c">More...</a><br /></td></tr>
<tr class="separator:ga7bd131a9843a9976172ae8006374014c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac350933b6954437b6f0f5a79806614f1"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gac350933b6954437b6f0f5a79806614f1">ch9121_set_gateway</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, uint8_t ip[4])</td></tr>
<tr class="memdesc:gac350933b6954437b6f0f5a79806614f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">set gateway  <a href="group__ch9121__base__driver.html#gac350933b6954437b6f0f5a79806614f1">More...</a><br /></td></tr>
<tr class="separator:gac350933b6954437b6f0f5a79806614f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4013583c0d4693385e7ff23490412c68"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga4013583c0d4693385e7ff23490412c68">ch9121_get_gateway</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, uint8_t ip[4])</td></tr>
<tr class="memdesc:ga4013583c0d4693385e7ff23490412c68"><td class="mdescLeft">&#160;</td><td class="mdescRight">get gateway  <a href="group__ch9121__base__driver.html#ga4013583c0d4693385e7ff23490412c68">More...</a><br /></td></tr>
<tr class="separator:ga4013583c0d4693385e7ff23490412c68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae739f01edc3fdd207a5a038b93f848d1"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gae739f01edc3fdd207a5a038b93f848d1">ch9121_get_status</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, <a class="el" href="group__ch9121__base__driver.html#ga96cfac2dc742c18219de2263f7cd9ca5">ch9121_status_t</a> *status)</td></tr>
<tr class="memdesc:gae739f01edc3fdd207a5a038b93f848d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">get status  <a href="group__ch9121__base__driver.html#gae739f01edc3fdd207a5a038b93f848d1">More...</a><br /></td></tr>
<tr class="separator:gae739f01edc3fdd207a5a038b93f848d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga665891e0f0acc62dcee01023e750602b"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga665891e0f0acc62dcee01023e750602b">ch9121_set_mode</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, <a class="el" href="group__ch9121__base__driver.html#ga1885e76e565351e002b873668e4a9d16">ch9121_mode_t</a> mode)</td></tr>
<tr class="memdesc:ga665891e0f0acc62dcee01023e750602b"><td class="mdescLeft">&#160;</td><td class="mdescRight">set mode  <a href="group__ch9121__base__driver.html#ga665891e0f0acc62dcee01023e750602b">More...</a><br /></td></tr>
<tr class="separator:ga665891e0f0acc62dcee01023e750602b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae24e26beb237e4cd3e71fff9af24a6bb"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gae24e26beb237e4cd3e71fff9af24a6bb">ch9121_get_mode</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, <a class="el" href="group__ch9121__base__driver.html#ga1885e76e565351e002b873668e4a9d16">ch9121_mode_t</a> *mode)</td></tr>
<tr class="memdesc:gae24e26beb237e4cd3e71fff9af24a6bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">get mode  <a href="group__ch9121__base__driver.html#gae24e26beb237e4cd3e71fff9af24a6bb">More...</a><br /></td></tr>
<tr class="separator:gae24e26beb237e4cd3e71fff9af24a6bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac44d822e00e68aa0f6827cdd6ffc8de1"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gac44d822e00e68aa0f6827cdd6ffc8de1">ch9121_set_source_port</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, uint16_t num)</td></tr>
<tr class="memdesc:gac44d822e00e68aa0f6827cdd6ffc8de1"><td class="mdescLeft">&#160;</td><td class="mdescRight">set source port  <a href="group__ch9121__base__driver.html#gac44d822e00e68aa0f6827cdd6ffc8de1">More...</a><br /></td></tr>
<tr class="separator:gac44d822e00e68aa0f6827cdd6ffc8de1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaec01c7865245fda2b9ffb382cecd8a1e"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gaec01c7865245fda2b9ffb382cecd8a1e">ch9121_get_source_port</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, uint16_t *num)</td></tr>
<tr class="memdesc:gaec01c7865245fda2b9ffb382cecd8a1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">get source port  <a href="group__ch9121__base__driver.html#gaec01c7865245fda2b9ffb382cecd8a1e">More...</a><br /></td></tr>
<tr class="separator:gaec01c7865245fda2b9ffb382cecd8a1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga738113547dfbf5d9f03fcaa7c964be38"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga738113547dfbf5d9f03fcaa7c964be38">ch9121_set_dest_ip</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, uint8_t ip[4])</td></tr>
<tr class="memdesc:ga738113547dfbf5d9f03fcaa7c964be38"><td class="mdescLeft">&#160;</td><td class="mdescRight">set dest ip  <a href="group__ch9121__base__driver.html#ga738113547dfbf5d9f03fcaa7c964be38">More...</a><br /></td></tr>
<tr class="separator:ga738113547dfbf5d9f03fcaa7c964be38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9b20f132d6d27a08e68ac0693524643a"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga9b20f132d6d27a08e68ac0693524643a">ch9121_get_dest_ip</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, uint8_t ip[4])</td></tr>
<tr class="memdesc:ga9b20f132d6d27a08e68ac0693524643a"><td class="mdescLeft">&#160;</td><td class="mdescRight">get dest ip  <a href="group__ch9121__base__driver.html#ga9b20f132d6d27a08e68ac0693524643a">More...</a><br /></td></tr>
<tr class="separator:ga9b20f132d6d27a08e68ac0693524643a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad8a38b0c407658283a7fe74267e30bb3"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gad8a38b0c407658283a7fe74267e30bb3">ch9121_set_dest_port</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, uint16_t num)</td></tr>
<tr class="memdesc:gad8a38b0c407658283a7fe74267e30bb3"><td class="mdescLeft">&#160;</td><td class="mdescRight">set dest port  <a href="group__ch9121__base__driver.html#gad8a38b0c407658283a7fe74267e30bb3">More...</a><br /></td></tr>
<tr class="separator:gad8a38b0c407658283a7fe74267e30bb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga740e7e3d8f77ded2e19aea7775903049"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga740e7e3d8f77ded2e19aea7775903049">ch9121_get_dest_port</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, uint16_t *num)</td></tr>
<tr class="memdesc:ga740e7e3d8f77ded2e19aea7775903049"><td class="mdescLeft">&#160;</td><td class="mdescRight">get dest port  <a href="group__ch9121__base__driver.html#ga740e7e3d8f77ded2e19aea7775903049">More...</a><br /></td></tr>
<tr class="separator:ga740e7e3d8f77ded2e19aea7775903049"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1e4f3caefef25d5075afb5e10fcd6e17"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga1e4f3caefef25d5075afb5e10fcd6e17">ch9121_set_uart_baud</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, uint32_t baud)</td></tr>
<tr class="memdesc:ga1e4f3caefef25d5075afb5e10fcd6e17"><td class="mdescLeft">&#160;</td><td class="mdescRight">set uart baud  <a href="group__ch9121__base__driver.html#ga1e4f3caefef25d5075afb5e10fcd6e17">More...</a><br /></td></tr>
<tr class="separator:ga1e4f3caefef25d5075afb5e10fcd6e17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab9677250e33483d30b61089ccc8884e7"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gab9677250e33483d30b61089ccc8884e7">ch9121_get_uart_baud</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, uint32_t *baud)</td></tr>
<tr class="memdesc:gab9677250e33483d30b61089ccc8884e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">get uart baud  <a href="group__ch9121__base__driver.html#gab9677250e33483d30b61089ccc8884e7">More...</a><br /></td></tr>
<tr class="separator:gab9677250e33483d30b61089ccc8884e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga93c63b2979c6397cb38c28253a4bc329"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga93c63b2979c6397cb38c28253a4bc329">ch9121_set_uart_config</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, uint8_t data_bit, <a class="el" href="group__ch9121__base__driver.html#ga07220e3de8bd64e49f66fa5b10a0e80e">ch9121_parity_t</a> parity, uint8_t stop_bit)</td></tr>
<tr class="memdesc:ga93c63b2979c6397cb38c28253a4bc329"><td class="mdescLeft">&#160;</td><td class="mdescRight">set uart config  <a href="group__ch9121__base__driver.html#ga93c63b2979c6397cb38c28253a4bc329">More...</a><br /></td></tr>
<tr class="separator:ga93c63b2979c6397cb38c28253a4bc329"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9f919b38ab9a62a8d4284b172a52d568"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga9f919b38ab9a62a8d4284b172a52d568">ch9121_get_uart_config</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, uint8_t *data_bit, <a class="el" href="group__ch9121__base__driver.html#ga07220e3de8bd64e49f66fa5b10a0e80e">ch9121_parity_t</a> *parity, uint8_t *stop_bit)</td></tr>
<tr class="memdesc:ga9f919b38ab9a62a8d4284b172a52d568"><td class="mdescLeft">&#160;</td><td class="mdescRight">get uart config  <a href="group__ch9121__base__driver.html#ga9f919b38ab9a62a8d4284b172a52d568">More...</a><br /></td></tr>
<tr class="separator:ga9f919b38ab9a62a8d4284b172a52d568"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabf684cf8b18467676b86d14aa9bcdf61"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gabf684cf8b18467676b86d14aa9bcdf61">ch9121_set_uart_timeout</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, uint8_t timeout)</td></tr>
<tr class="memdesc:gabf684cf8b18467676b86d14aa9bcdf61"><td class="mdescLeft">&#160;</td><td class="mdescRight">set uart timeout  <a href="group__ch9121__base__driver.html#gabf684cf8b18467676b86d14aa9bcdf61">More...</a><br /></td></tr>
<tr class="separator:gabf684cf8b18467676b86d14aa9bcdf61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga69372bd9447d192539800c2b2de9235d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga69372bd9447d192539800c2b2de9235d">ch9121_get_uart_timeout</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, uint8_t *timeout)</td></tr>
<tr class="memdesc:ga69372bd9447d192539800c2b2de9235d"><td class="mdescLeft">&#160;</td><td class="mdescRight">get uart timeout  <a href="group__ch9121__base__driver.html#ga69372bd9447d192539800c2b2de9235d">More...</a><br /></td></tr>
<tr class="separator:ga69372bd9447d192539800c2b2de9235d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa2ebeccee89d188def4cd04451590e17"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gaa2ebeccee89d188def4cd04451590e17">ch9121_uart_timeout_convert_to_register</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, uint16_t ms, uint8_t *reg)</td></tr>
<tr class="memdesc:gaa2ebeccee89d188def4cd04451590e17"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert the uart timeout to the register raw data  <a href="group__ch9121__base__driver.html#gaa2ebeccee89d188def4cd04451590e17">More...</a><br /></td></tr>
<tr class="separator:gaa2ebeccee89d188def4cd04451590e17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6acdb73fe1254a41aefe4532bf11083e"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga6acdb73fe1254a41aefe4532bf11083e">ch9121_uart_timeout_convert_to_data</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, uint8_t reg, uint16_t *ms)</td></tr>
<tr class="memdesc:ga6acdb73fe1254a41aefe4532bf11083e"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert the register raw data to the offset  <a href="group__ch9121__base__driver.html#ga6acdb73fe1254a41aefe4532bf11083e">More...</a><br /></td></tr>
<tr class="separator:ga6acdb73fe1254a41aefe4532bf11083e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga625fda7608944799b1e22e22862e8780"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga625fda7608944799b1e22e22862e8780">ch9121_set_source_port_random</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, <a class="el" href="group__ch9121__base__driver.html#ga072a08d5a76de43c772438883775ae8e">ch9121_bool_t</a> enable)</td></tr>
<tr class="memdesc:ga625fda7608944799b1e22e22862e8780"><td class="mdescLeft">&#160;</td><td class="mdescRight">enable or disable random source port number  <a href="group__ch9121__base__driver.html#ga625fda7608944799b1e22e22862e8780">More...</a><br /></td></tr>
<tr class="separator:ga625fda7608944799b1e22e22862e8780"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaef0c2eaab67024a3ffaf84e46dcf5146"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gaef0c2eaab67024a3ffaf84e46dcf5146">ch9121_set_uart_buffer_length</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, uint32_t len)</td></tr>
<tr class="memdesc:gaef0c2eaab67024a3ffaf84e46dcf5146"><td class="mdescLeft">&#160;</td><td class="mdescRight">set uart buffer length  <a href="group__ch9121__base__driver.html#gaef0c2eaab67024a3ffaf84e46dcf5146">More...</a><br /></td></tr>
<tr class="separator:gaef0c2eaab67024a3ffaf84e46dcf5146"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4c2122bad56f0373fa33d829a2fcc19b"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga4c2122bad56f0373fa33d829a2fcc19b">ch9121_set_uart_flush</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a> port, <a class="el" href="group__ch9121__base__driver.html#ga072a08d5a76de43c772438883775ae8e">ch9121_bool_t</a> enable)</td></tr>
<tr class="memdesc:ga4c2122bad56f0373fa33d829a2fcc19b"><td class="mdescLeft">&#160;</td><td class="mdescRight">enable or disable uart auto flush  <a href="group__ch9121__base__driver.html#ga4c2122bad56f0373fa33d829a2fcc19b">More...</a><br /></td></tr>
<tr class="separator:ga4c2122bad56f0373fa33d829a2fcc19b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad17c12e1cc279fbeb0d7604311dc3796"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gad17c12e1cc279fbeb0d7604311dc3796">ch9121_set_port2</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#ga072a08d5a76de43c772438883775ae8e">ch9121_bool_t</a> enable)</td></tr>
<tr class="memdesc:gad17c12e1cc279fbeb0d7604311dc3796"><td class="mdescLeft">&#160;</td><td class="mdescRight">enable or disable uart port2  <a href="group__ch9121__base__driver.html#gad17c12e1cc279fbeb0d7604311dc3796">More...</a><br /></td></tr>
<tr class="separator:gad17c12e1cc279fbeb0d7604311dc3796"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4510caa0dea208d4dff25816d502a78a"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#ga4510caa0dea208d4dff25816d502a78a">ch9121_set_disconnect_with_no_rj45</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, <a class="el" href="group__ch9121__base__driver.html#ga072a08d5a76de43c772438883775ae8e">ch9121_bool_t</a> enable)</td></tr>
<tr class="memdesc:ga4510caa0dea208d4dff25816d502a78a"><td class="mdescLeft">&#160;</td><td class="mdescRight">enable or disable disconnect with no rj45  <a href="group__ch9121__base__driver.html#ga4510caa0dea208d4dff25816d502a78a">More...</a><br /></td></tr>
<tr class="separator:ga4510caa0dea208d4dff25816d502a78a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaaea8304fd7622328628752547f3e72cf"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__base__driver.html#gaaea8304fd7622328628752547f3e72cf">ch9121_set_domain</a> (<a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *handle, char *domain)</td></tr>
<tr class="memdesc:gaaea8304fd7622328628752547f3e72cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">set chip domain  <a href="group__ch9121__base__driver.html#gaaea8304fd7622328628752547f3e72cf">More...</a><br /></td></tr>
<tr class="separator:gaaea8304fd7622328628752547f3e72cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>ch9121 base driver modules </p>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="gaf0819c9c7faa65567adecbfe6b5c1bc5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf0819c9c7faa65567adecbfe6b5c1bc5">&#9670;&nbsp;</a></span>CH9121_UART_PRE_DELAY</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CH9121_UART_PRE_DELAY&#160;&#160;&#160;10</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ch9121 uart pre delay definition </p>
<p>10ms </p>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8h_source.html#l00063">63</a> of file <a class="el" href="driver__ch9121_8h_source.html">driver_ch9121.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="ga6dc45bcf5de725fd18b9fc3c4500a54d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6dc45bcf5de725fd18b9fc3c4500a54d">&#9670;&nbsp;</a></span>ch9121_handle_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structch9121__handle__s.html">ch9121_handle_s</a> <a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ch9121 handle structure definition </p>

</div>
</div>
<a id="ga64b13a4c2b573c1bd9e28471e7c4507f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga64b13a4c2b573c1bd9e28471e7c4507f">&#9670;&nbsp;</a></span>ch9121_info_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structch9121__info__s.html">ch9121_info_s</a> <a class="el" href="group__ch9121__base__driver.html#ga64b13a4c2b573c1bd9e28471e7c4507f">ch9121_info_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ch9121 information structure definition </p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga072a08d5a76de43c772438883775ae8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga072a08d5a76de43c772438883775ae8e">&#9670;&nbsp;</a></span>ch9121_bool_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ch9121__base__driver.html#ga072a08d5a76de43c772438883775ae8e">ch9121_bool_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ch9121 bool enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga072a08d5a76de43c772438883775ae8ea1bfd3219c201035143f8d61b0d188a11"></a>CH9121_BOOL_FALSE&#160;</td><td class="fielddoc"><p>false </p>
</td></tr>
<tr><td class="fieldname"><a id="gga072a08d5a76de43c772438883775ae8ea776657b5ef1ad43c3a3f1e52a00abe22"></a>CH9121_BOOL_TRUE&#160;</td><td class="fielddoc"><p>true </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8h_source.html#l00078">78</a> of file <a class="el" href="driver__ch9121_8h_source.html">driver_ch9121.h</a>.</p>

</div>
</div>
<a id="ga1885e76e565351e002b873668e4a9d16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1885e76e565351e002b873668e4a9d16">&#9670;&nbsp;</a></span>ch9121_mode_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ch9121__base__driver.html#ga1885e76e565351e002b873668e4a9d16">ch9121_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ch9121 mode enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga1885e76e565351e002b873668e4a9d16aadc6c8b1f132f07caf14d1349be24598"></a>CH9121_MODE_TCP_SERVER&#160;</td><td class="fielddoc"><p>tcp server </p>
</td></tr>
<tr><td class="fieldname"><a id="gga1885e76e565351e002b873668e4a9d16ab66dffa5b1e5f60f96e91f3909bc9cf8"></a>CH9121_MODE_TCP_CLIENT&#160;</td><td class="fielddoc"><p>tcp client </p>
</td></tr>
<tr><td class="fieldname"><a id="gga1885e76e565351e002b873668e4a9d16a4775481c1370e70fa78ef7846424f8e0"></a>CH9121_MODE_UDP_SERVER&#160;</td><td class="fielddoc"><p>udp server </p>
</td></tr>
<tr><td class="fieldname"><a id="gga1885e76e565351e002b873668e4a9d16ac076c7cf5ed640ca07f9698fbfd17eda"></a>CH9121_MODE_UDP_CLIENT&#160;</td><td class="fielddoc"><p>udp client </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8h_source.html#l00096">96</a> of file <a class="el" href="driver__ch9121_8h_source.html">driver_ch9121.h</a>.</p>

</div>
</div>
<a id="ga07220e3de8bd64e49f66fa5b10a0e80e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga07220e3de8bd64e49f66fa5b10a0e80e">&#9670;&nbsp;</a></span>ch9121_parity_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ch9121__base__driver.html#ga07220e3de8bd64e49f66fa5b10a0e80e">ch9121_parity_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ch9121 parity enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga07220e3de8bd64e49f66fa5b10a0e80ea681a6976b74755d5de27c6e3348a6771"></a>CH9121_PARITY_EVEN&#160;</td><td class="fielddoc"><p>even parity </p>
</td></tr>
<tr><td class="fieldname"><a id="gga07220e3de8bd64e49f66fa5b10a0e80ea7f51ff40bf41962fef63d2885c50adab"></a>CH9121_PARITY_ODD&#160;</td><td class="fielddoc"><p>odd parity </p>
</td></tr>
<tr><td class="fieldname"><a id="gga07220e3de8bd64e49f66fa5b10a0e80ea6edd8794ba8b703e9c6ff4d6252ba69f"></a>CH9121_PARITY_MARK&#160;</td><td class="fielddoc"><p>mark </p>
</td></tr>
<tr><td class="fieldname"><a id="gga07220e3de8bd64e49f66fa5b10a0e80eae332f48bf918e608fe4ce6c4cfc7b18f"></a>CH9121_PARITY_SPACE&#160;</td><td class="fielddoc"><p>space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga07220e3de8bd64e49f66fa5b10a0e80eae92b585a2a716954404ccca52a44b116"></a>CH9121_PARITY_NONE&#160;</td><td class="fielddoc"><p>none </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8h_source.html#l00107">107</a> of file <a class="el" href="driver__ch9121_8h_source.html">driver_ch9121.h</a>.</p>

</div>
</div>
<a id="gaa237c01198f7eefe10d865ae5acef0f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa237c01198f7eefe10d865ae5acef0f8">&#9670;&nbsp;</a></span>ch9121_port_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ch9121 port enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaa237c01198f7eefe10d865ae5acef0f8aff6d2cff524167d0f2643bbcf984ea4f"></a>CH9121_PORT1&#160;</td><td class="fielddoc"><p>port1 </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa237c01198f7eefe10d865ae5acef0f8a2d106209a49642e1fc14c3d0d50dfd0b"></a>CH9121_PORT2&#160;</td><td class="fielddoc"><p>port2 </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8h_source.html#l00069">69</a> of file <a class="el" href="driver__ch9121_8h_source.html">driver_ch9121.h</a>.</p>

</div>
</div>
<a id="ga96cfac2dc742c18219de2263f7cd9ca5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga96cfac2dc742c18219de2263f7cd9ca5">&#9670;&nbsp;</a></span>ch9121_status_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ch9121__base__driver.html#ga96cfac2dc742c18219de2263f7cd9ca5">ch9121_status_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ch9121 status enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga96cfac2dc742c18219de2263f7cd9ca5af8d0734b6b03a6a7d13b653163d00271"></a>CH9121_STATUS_DISCONNECT&#160;</td><td class="fielddoc"><p>disconnect </p>
</td></tr>
<tr><td class="fieldname"><a id="gga96cfac2dc742c18219de2263f7cd9ca5ad6c9da3731fc5e4c0512207ffab0c351"></a>CH9121_STATUS_CONNECT&#160;</td><td class="fielddoc"><p>connect </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8h_source.html#l00087">87</a> of file <a class="el" href="driver__ch9121_8h_source.html">driver_ch9121.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga42c3f2032acd289900bb7aece12b08c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga42c3f2032acd289900bb7aece12b08c7">&#9670;&nbsp;</a></span>ch9121_config_and_reset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_config_and_reset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>config and reset the chip </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 config and reset failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00376">376</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga50583196c51bf2199c588bc60d9cc1f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga50583196c51bf2199c588bc60d9cc1f6">&#9670;&nbsp;</a></span>ch9121_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_deinit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>close the chip </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 uart deinit failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 reset failed</li>
<li>5 reset gpio deinit failed</li>
<li>6 cfg gpio deinit failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01841">1841</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gae09655171b845f0b82c0d5f5fb64b020"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae09655171b845f0b82c0d5f5fb64b020">&#9670;&nbsp;</a></span>ch9121_exit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_exit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>exit </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 exit failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00410">410</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga9b20f132d6d27a08e68ac0693524643a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9b20f132d6d27a08e68ac0693524643a">&#9670;&nbsp;</a></span>ch9121_get_dest_ip()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_get_dest_ip </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ip</em>[4]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get dest ip </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*ip</td><td>points to an ip buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get dest ip failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00995">995</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga740e7e3d8f77ded2e19aea7775903049"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga740e7e3d8f77ded2e19aea7775903049">&#9670;&nbsp;</a></span>ch9121_get_dest_port()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_get_dest_port </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get dest port </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*num</td><td>points to a dest port buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get dest port failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01082">1082</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga4013583c0d4693385e7ff23490412c68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4013583c0d4693385e7ff23490412c68">&#9670;&nbsp;</a></span>ch9121_get_gateway()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_get_gateway </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ip</em>[4]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get gateway </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*ip</td><td>points to an ip buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get gateway failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00826">826</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga0b0ac5aadb82af97326b5ac5c8eaa92b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0b0ac5aadb82af97326b5ac5c8eaa92b">&#9670;&nbsp;</a></span>ch9121_get_ip()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_get_ip </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ip</em>[4]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get ip address </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*ip</td><td>points to an ip buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get ip failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00682">682</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gaef57bbffd080f9ba360f2e1e54f15d36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaef57bbffd080f9ba360f2e1e54f15d36">&#9670;&nbsp;</a></span>ch9121_get_mac()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_get_mac </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mac</em>[6]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get chip mac </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*mac</td><td>points to a mac buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get mac failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00479">479</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gae24e26beb237e4cd3e71fff9af24a6bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae24e26beb237e4cd3e71fff9af24a6bb">&#9670;&nbsp;</a></span>ch9121_get_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_get_mode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga1885e76e565351e002b873668e4a9d16">ch9121_mode_t</a> *&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get mode </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*mode</td><td>points to a mode buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get mode failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00601">601</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gaec01c7865245fda2b9ffb382cecd8a1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaec01c7865245fda2b9ffb382cecd8a1e">&#9670;&nbsp;</a></span>ch9121_get_source_port()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_get_source_port </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get source port </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*num</td><td>points to a source port buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get source port failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00905">905</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gae739f01edc3fdd207a5a038b93f848d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae739f01edc3fdd207a5a038b93f848d1">&#9670;&nbsp;</a></span>ch9121_get_status()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_get_status </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga96cfac2dc742c18219de2263f7cd9ca5">ch9121_status_t</a> *&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get status </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*status</td><td>points to a status buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get status failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00514">514</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga7bd131a9843a9976172ae8006374014c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7bd131a9843a9976172ae8006374014c">&#9670;&nbsp;</a></span>ch9121_get_subnet_mask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_get_subnet_mask </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mask</em>[4]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get subnet mask </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*mask</td><td>points to a mask buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get subnet mask failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00754">754</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gab9677250e33483d30b61089ccc8884e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab9677250e33483d30b61089ccc8884e7">&#9670;&nbsp;</a></span>ch9121_get_uart_baud()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_get_uart_baud </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>baud</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get uart baud </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*baud</td><td>points to a baud buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get uart baud failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01172">1172</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga9f919b38ab9a62a8d4284b172a52d568"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9f919b38ab9a62a8d4284b172a52d568">&#9670;&nbsp;</a></span>ch9121_get_uart_config()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_get_uart_config </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data_bit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga07220e3de8bd64e49f66fa5b10a0e80e">ch9121_parity_t</a> *&#160;</td>
          <td class="paramname"><em>parity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>stop_bit</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get uart config </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*data_bit</td><td>points to a uart data bit buffer </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*parity</td><td>points to a uart parity buffer </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*stop_bit</td><td>points to a uart stop bit buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get uart config failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01266">1266</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga69372bd9447d192539800c2b2de9235d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga69372bd9447d192539800c2b2de9235d">&#9670;&nbsp;</a></span>ch9121_get_uart_timeout()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_get_uart_timeout </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>timeout</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get uart timeout </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*timeout</td><td>points to a uart timeout buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get uart timeout failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01358">1358</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gad79a97224fb88e872af00e62a34883b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad79a97224fb88e872af00e62a34883b2">&#9670;&nbsp;</a></span>ch9121_get_version()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_get_version </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>version</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get version </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*version</td><td>points to a version buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get version failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00276">276</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga2bc209bc96bc112c30b21f9728812e2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2bc209bc96bc112c30b21f9728812e2c">&#9670;&nbsp;</a></span>ch9121_info()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_info </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga64b13a4c2b573c1bd9e28471e7c4507f">ch9121_info_t</a> *&#160;</td>
          <td class="paramname"><em>info</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get chip's information </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">*info</td><td>points to a ch9121 info structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>2 handle is NULL </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l02007">2007</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga10ec3831683691a58c4f8b51572e0576"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga10ec3831683691a58c4f8b51572e0576">&#9670;&nbsp;</a></span>ch9121_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>initialize the chip </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 uart initialization failed</li>
<li>2 handle is NULL</li>
<li>3 linked functions is NULL</li>
<li>4 reset gpio init failed</li>
<li>5 cfg gpio init failed</li>
<li>6 reset failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01699">1699</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga52e9895a3f0777c15bd3f6ecd42d50d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga52e9895a3f0777c15bd3f6ecd42d50d8">&#9670;&nbsp;</a></span>ch9121_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>read data </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*buf</td><td>points to a data buffer </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">*len</td><td>points to a length buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 read failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01934">1934</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga590150199f4c795ca1b2aa553f1f8933"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga590150199f4c795ca1b2aa553f1f8933">&#9670;&nbsp;</a></span>ch9121_reset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_reset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>reset the chip </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 reset failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00309">309</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga77e5d4780e16f8f820c4eaba204fd7be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga77e5d4780e16f8f820c4eaba204fd7be">&#9670;&nbsp;</a></span>ch9121_save_to_eeprom()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_save_to_eeprom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>save to eeprom </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 save to eeprom failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00343">343</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga738113547dfbf5d9f03fcaa7c964be38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga738113547dfbf5d9f03fcaa7c964be38">&#9670;&nbsp;</a></span>ch9121_set_dest_ip()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_dest_ip </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ip</em>[4]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set dest ip </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*ip</td><td>points to an ip buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set dest ip failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00949">949</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gad8a38b0c407658283a7fe74267e30bb3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad8a38b0c407658283a7fe74267e30bb3">&#9670;&nbsp;</a></span>ch9121_set_dest_port()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_dest_port </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set dest port </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>is the dest port </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set dest port failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01038">1038</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga20b05e4d19f80d40ae9287f367e75d82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga20b05e4d19f80d40ae9287f367e75d82">&#9670;&nbsp;</a></span>ch9121_set_dhcp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_dhcp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga072a08d5a76de43c772438883775ae8e">ch9121_bool_t</a>&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>enable or disable dhcp </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">enable</td><td>is a bool value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set dhcp failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00444">444</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga4510caa0dea208d4dff25816d502a78a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4510caa0dea208d4dff25816d502a78a">&#9670;&nbsp;</a></span>ch9121_set_disconnect_with_no_rj45()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_disconnect_with_no_rj45 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga072a08d5a76de43c772438883775ae8e">ch9121_bool_t</a>&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>enable or disable disconnect with no rj45 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">enable</td><td>is a bool value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set disconnect with no rj45 failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01620">1620</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gaaea8304fd7622328628752547f3e72cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaaea8304fd7622328628752547f3e72cf">&#9670;&nbsp;</a></span>ch9121_set_domain()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_domain </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>domain</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set chip domain </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*domain</td><td>points to a domain buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set domain failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01655">1655</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gac350933b6954437b6f0f5a79806614f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac350933b6954437b6f0f5a79806614f1">&#9670;&nbsp;</a></span>ch9121_set_gateway()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_gateway </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ip</em>[4]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set gateway </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*ip</td><td>points to an ip buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set gateway failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00788">788</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga3c7f6c035eb9e7636fc69e54e668cdf4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3c7f6c035eb9e7636fc69e54e668cdf4">&#9670;&nbsp;</a></span>ch9121_set_ip()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_ip </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ip</em>[4]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set ip address </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*ip</td><td>points to an ip buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set ip failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00644">644</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga665891e0f0acc62dcee01023e750602b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga665891e0f0acc62dcee01023e750602b">&#9670;&nbsp;</a></span>ch9121_set_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_mode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga1885e76e565351e002b873668e4a9d16">ch9121_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set mode </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>is the set mode </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set mode failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00558">558</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gad17c12e1cc279fbeb0d7604311dc3796"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad17c12e1cc279fbeb0d7604311dc3796">&#9670;&nbsp;</a></span>ch9121_set_port2()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_port2 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga072a08d5a76de43c772438883775ae8e">ch9121_bool_t</a>&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>enable or disable uart port2 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">enable</td><td>is a bool value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set port2 failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01585">1585</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gac44d822e00e68aa0f6827cdd6ffc8de1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac44d822e00e68aa0f6827cdd6ffc8de1">&#9670;&nbsp;</a></span>ch9121_set_source_port()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_source_port </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set source port </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>is the source port </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set source port failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00861">861</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga625fda7608944799b1e22e22862e8780"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga625fda7608944799b1e22e22862e8780">&#9670;&nbsp;</a></span>ch9121_set_source_port_random()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_source_port_random </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga072a08d5a76de43c772438883775ae8e">ch9121_bool_t</a>&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>enable or disable random source port number </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">enable</td><td>is a bool value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set source port random failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01454">1454</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gaa58f8a9bc5ea8ba90f7b4a176900c687"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa58f8a9bc5ea8ba90f7b4a176900c687">&#9670;&nbsp;</a></span>ch9121_set_subnet_mask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_subnet_mask </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mask</em>[4]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set subnet mask </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*mask</td><td>points to a mask buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set subnet mask failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l00716">716</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga1e4f3caefef25d5075afb5e10fcd6e17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1e4f3caefef25d5075afb5e10fcd6e17">&#9670;&nbsp;</a></span>ch9121_set_uart_baud()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_uart_baud </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>baud</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set uart baud </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">baud</td><td>is the set baud </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set uart baud failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01126">1126</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gaef0c2eaab67024a3ffaf84e46dcf5146"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaef0c2eaab67024a3ffaf84e46dcf5146">&#9670;&nbsp;</a></span>ch9121_set_uart_buffer_length()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_uart_buffer_length </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set uart buffer length </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>is the buffer length </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set uart buffer length failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01497">1497</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga93c63b2979c6397cb38c28253a4bc329"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga93c63b2979c6397cb38c28253a4bc329">&#9670;&nbsp;</a></span>ch9121_set_uart_config()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_uart_config </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>data_bit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga07220e3de8bd64e49f66fa5b10a0e80e">ch9121_parity_t</a>&#160;</td>
          <td class="paramname"><em>parity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stop_bit</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set uart config </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data_bit</td><td>is the uart data bit </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">parity</td><td>is the uart parity </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">stop_bit</td><td>is the uart stop bit </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set uart config failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01219">1219</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga4c2122bad56f0373fa33d829a2fcc19b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4c2122bad56f0373fa33d829a2fcc19b">&#9670;&nbsp;</a></span>ch9121_set_uart_flush()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_uart_flush </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga072a08d5a76de43c772438883775ae8e">ch9121_bool_t</a>&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>enable or disable uart auto flush </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">enable</td><td>is a bool value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set uart flush failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01543">1543</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gabf684cf8b18467676b86d14aa9bcdf61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabf684cf8b18467676b86d14aa9bcdf61">&#9670;&nbsp;</a></span>ch9121_set_uart_timeout()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_set_uart_timeout </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#gaa237c01198f7eefe10d865ae5acef0f8">ch9121_port_t</a>&#160;</td>
          <td class="paramname"><em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>timeout</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set uart timeout </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>is the set port </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">timeout</td><td>is the uart timeout </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set uart timeout failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01312">1312</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="ga6acdb73fe1254a41aefe4532bf11083e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6acdb73fe1254a41aefe4532bf11083e">&#9670;&nbsp;</a></span>ch9121_uart_timeout_convert_to_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_uart_timeout_convert_to_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>ms</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>convert the register raw data to the offset </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">reg</td><td>is the register raw data </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*ms</td><td>points to an ms buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01426">1426</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gaa2ebeccee89d188def4cd04451590e17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa2ebeccee89d188def4cd04451590e17">&#9670;&nbsp;</a></span>ch9121_uart_timeout_convert_to_register()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_uart_timeout_convert_to_register </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>reg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>convert the uart timeout to the register raw data </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">ms</td><td>is the timeout </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*reg</td><td>points to a register raw buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01399">1399</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
<a id="gaf5607dae69f7c7df32f11ae4c3b4a376"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf5607dae69f7c7df32f11ae4c3b4a376">&#9670;&nbsp;</a></span>ch9121_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ch9121__base__driver.html#ga6dc45bcf5de725fd18b9fc3c4500a54d">ch9121_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>write data </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ch9121 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*buf</td><td>points to a data buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>is the data length </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 write failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121_8c_source.html#l01895">1895</a> of file <a class="el" href="driver__ch9121_8c_source.html">driver_ch9121.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
